import request from '@/utils/request'
import { LoginFormType } from '@/types/user'

export function login(data: LoginFormType) {
  return request({
    url: '/auth/login',
    method: 'post',
    data
  })
}

export function getInfo() {
  return request({
    url: '/auth/me',
    method: 'get',
  })
}
